import { Provide } from '@midwayjs/decorator';
import { BaseService } from '@cool-midway/core';
import { InjectEntityModel } from '@midwayjs/orm';
import { Repository } from 'typeorm';
import { WeiboActivityEntity } from '../entity/activity'

/**
 * 描述
 */
@Provide()
export class WeiboActivityService extends BaseService {
  @InjectEntityModel(WeiboActivityEntity)
  weiboActivityEntity: Repository<WeiboActivityEntity>;

  async findInIds(ids) {
    return this.weiboActivityEntity.findByIds(ids);
  }
  async info(id){
   return  await this.weiboActivityEntity.findOne({id})
  }
}
